home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 2
/
Merciful - Disc 2.iso
/
software
/
m
/
maxonc++3.dms
/
maxonc++3.adf
/
DEMOS
/
ScrWin.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-11-23
|
1KB
|
49 lines
#include <exec/types.h>
#include <intuition/intuition.h>
#include <libraries/dosextens.h>
#include <functions.h>
#include <stdio.h>
#include <clib/rct_protos.h>
APTR ApplBase;
APTR RctBase;
void main( void)
{
struct Window *win,*win1;
SHORT handle,quit = 1;
struct TagItem taglist[8];
struct Screen *scr;
taglist[0].ti_Tag = 40;
if( ! (RctBase =(APTR)OpenLibrary( ( UBYTE *)"rct.library",16L)))
{
printf("Can't open libraries\n");
return;
}
if( ApplBase = R_InitApplTags( TAG_DONE))
{
scr = ( struct Screen *)R_ShowScreenTags( ApplBase, RSA_CloneWB, 1L, TAG_DONE);
/* Hier Hauptprogramm einügen! */
/* Dieses Window wird in voller Größe auf dem neuen Screen geöffnet */
win = ( struct Window *)R_ShowWindowTags( ApplBase, RWA_SCRCPY, 1, RWA_CustomScreen, ( ULONG)scr, TAG_DONE);
/* Und dieses auf der Workbench */
win1 = ( struct Window *)R_ShowWindowTags( ApplBase, RWA_SCRCPY, 1, RWA_Height, 200, TAG_DONE);
Delay( 100);
R_FormAlertTags( ApplBase, RFA_Center, 1L, RFA_CloseID , 2L, RFA_WindowDrag, 1L, RFA_WindowClose, 1L, RFA_WindowDepth, 1L, RFA_DefaultID, 2, RFA_GadgetText,"_OK|_Zurück",RFA_AlertText, "[2][ |Programm beenden ?]",TAG_DONE);
R_ExitAppl( ApplBase);
}
CloseLibrary( ( struct Library *)RctBase);
}
#include <rct/rcttagfuncs.h>